package com.dhf.xhb.util;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {
	public static SessionFactory factory ;
	static{
		Configuration config = new Configuration();
		config.configure();
		factory = config.buildSessionFactory();
	}
	
	public Session getSession()
	{
		return factory.openSession();
	}
}
